package Exp5_2;

public class Employee {
    private int eno;
    private String ename;
    private int eage;
    public Employee(){

    }
    public Employee(int eno,String ename,int eage){
        if(eno>=60||eno<=20)
            throw new EnoException("Eno should between 20 and 60!");
        this.eno = eno;
        this.ename = ename;
        this.eage = eage;
    }
}
